<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <title>Hoodoo::Monkey::Patch::NewRelicTracedAMQP::AMQPNewRelicRequestWrapper</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <link rel="stylesheet" href="../../../../../css/reset.css" type="text/css" media="screen" />
<link rel="stylesheet" href="../../../../../css/main.css" type="text/css" media="screen" />
<link rel="stylesheet" href="../../../../../css/github.css" type="text/css" media="screen" />
<script src="../../../../../js/jquery-1.3.2.min.js" type="text/javascript" charset="utf-8"></script>
<script src="../../../../../js/jquery-effect.js" type="text/javascript" charset="utf-8"></script>
<script src="../../../../../js/main.js" type="text/javascript" charset="utf-8"></script>
<script src="../../../../../js/highlight.pack.js" type="text/javascript" charset="utf-8"></script>

</head>

<body>
    <div class="banner">
        <h1>
            <span class="type">Class</span>
            Hoodoo::Monkey::Patch::NewRelicTracedAMQP::AMQPNewRelicRequestWrapper
                <span class="parent">&lt;
                    Object
                </span>
        </h1>
        <ul class="files">
            <li><a href="../../../../../files/lib/hoodoo/monkey/patch/newrelic_traced_amqp_rb.html">lib/hoodoo/monkey/patch/newrelic_traced_amqp.rb</a></li>
        </ul>
    </div>
    <div id="bodyContent">
        <div id="content">
    <div class="description">
      
<p>Wrapper class for an AMQP request which conforms to the API that NewRelic
expects.</p>

    </div>








    <!-- Method ref -->
    <div class="sectiontitle">Methods</div>
    <dl class="methods">
        <dt>#</dt>
        <dd>
          <ul>
              <li>
                <a href="#method-i-5B-5D">[]</a>,
              </li>
              <li>
                <a href="#method-i-5B-5D-3D">[]=</a>
              </li>
          </ul>
        </dd>
        <dt>H</dt>
        <dd>
          <ul>
              <li>
                <a href="#method-i-host">host</a>
              </li>
          </ul>
        </dd>
        <dt>M</dt>
        <dd>
          <ul>
              <li>
                <a href="#method-i-method">method</a>
              </li>
          </ul>
        </dd>
        <dt>N</dt>
        <dd>
          <ul>
              <li>
                <a href="#method-c-new">new</a>
              </li>
          </ul>
        </dd>
        <dt>T</dt>
        <dd>
          <ul>
              <li>
                <a href="#method-i-type">type</a>
              </li>
          </ul>
        </dd>
        <dt>U</dt>
        <dd>
          <ul>
              <li>
                <a href="#method-i-uri">uri</a>
              </li>
          </ul>
        </dd>
    </dl>










    <!-- Methods -->
      <div class="sectiontitle">Class Public methods</div>
        <div class="method">
          <div class="title method-title" id="method-c-new">
              <b>new</b>( http_message, full_uri )
            <a href="../../../../../classes/Hoodoo/Monkey/Patch/NewRelicTracedAMQP/AMQPNewRelicRequestWrapper.html#method-c-new" name="method-c-new" class="permalink">Link</a>
          </div>

            <div class="description">
              <p>Wrap the Alchemy Flux <code>http_message</code> aimed at the specified
<code>full_uri</code>.</p>
<dl class="rdoc-list note-list"><dt>http_message
<dd>
<p>Hash describing the request for Alchemy Flux.</p>
</dd><dt><code>full_uri</code>
<dd>
<p>Full target URI, as a String.</p>
</dd></dl>
            </div>



            <div class="sourcecode">
              <p class="source-link">
                Source:
                <a href="javascript:toggleSource('method-c-new_source')" id="l_method-c-new_source">show</a>
              </p>
              <div id="method-c-new_source" class="dyn-source">
                <pre><span class="ruby-comment"># File lib/hoodoo/monkey/patch/newrelic_traced_amqp.rb, line 86</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword ruby-title">initialize</span>( <span class="ruby-identifier">http_message</span>, <span class="ruby-identifier">full_uri</span> )
  <span class="ruby-ivar">@http_message</span> = <span class="ruby-identifier">http_message</span>
  <span class="ruby-ivar">@full_uri</span>     = <span class="ruby-identifier">full_uri</span>
<span class="ruby-keyword">end</span></pre>
              </div>
            </div>
          </div>
      <div class="sectiontitle">Instance Public methods</div>
        <div class="method">
          <div class="title method-title" id="method-i-5B-5D">
              <b>[]</b>( key )
            <a href="../../../../../classes/Hoodoo/Monkey/Patch/NewRelicTracedAMQP/AMQPNewRelicRequestWrapper.html#method-i-5B-5D" name="method-i-5B-5D" class="permalink">Link</a>
          </div>

            <div class="description">
              <p>Key lookup is delegated to the headers Hash per NewRelic&#39;s expectations
of how a request behaves.</p>
<dl class="rdoc-list note-list"><dt><code>key</code>
<dd>
<p>Hash key to look up.</p>
</dd></dl>
            </div>



            <div class="sourcecode">
              <p class="source-link">
                Source:
                <a href="javascript:toggleSource('method-i-5B-5D_source')" id="l_method-i-5B-5D_source">show</a>
              </p>
              <div id="method-i-5B-5D_source" class="dyn-source">
                <pre><span class="ruby-comment"># File lib/hoodoo/monkey/patch/newrelic_traced_amqp.rb, line 116</span>
<span class="ruby-keyword">def</span> <span class="ruby-operator">[]</span>( <span class="ruby-keyword ruby-title">key</span> )
  <span class="ruby-ivar">@http_message</span>[ <span class="ruby-string">&#39;headers&#39;</span> ][ <span class="ruby-identifier">key</span> ]
<span class="ruby-keyword">end</span></pre>
              </div>
            </div>
          </div>
        <div class="method">
          <div class="title method-title" id="method-i-5B-5D-3D">
              <b>[]=</b>( key, value )
            <a href="../../../../../classes/Hoodoo/Monkey/Patch/NewRelicTracedAMQP/AMQPNewRelicRequestWrapper.html#method-i-5B-5D-3D" name="method-i-5B-5D-3D" class="permalink">Link</a>
          </div>

            <div class="description">
              <p>Key setting is delegated to the headers Hash per NewRelic&#39;s
expectations of how a request behaves.</p>
<dl class="rdoc-list note-list"><dt><code>key</code>
<dd>
<p>Key of Hash entry to modify.</p>
</dd><dt><code>value</code>
<dd>
<p>New or replacement value for identified Hash entry.</p>
</dd></dl>
            </div>



            <div class="sourcecode">
              <p class="source-link">
                Source:
                <a href="javascript:toggleSource('method-i-5B-5D-3D_source')" id="l_method-i-5B-5D-3D_source">show</a>
              </p>
              <div id="method-i-5B-5D-3D_source" class="dyn-source">
                <pre><span class="ruby-comment"># File lib/hoodoo/monkey/patch/newrelic_traced_amqp.rb, line 126</span>
<span class="ruby-keyword">def</span> <span class="ruby-operator">[]=</span>( <span class="ruby-keyword ruby-title">key</span>, <span class="ruby-identifier">value</span> )
  <span class="ruby-ivar">@http_message</span>[ <span class="ruby-string">&#39;headers&#39;</span> ][ <span class="ruby-identifier">key</span> ] = <span class="ruby-identifier">value</span>
<span class="ruby-keyword">end</span></pre>
              </div>
            </div>
          </div>
        <div class="method">
          <div class="title method-title" id="method-i-host">
              <b>host</b>()
            <a href="../../../../../classes/Hoodoo/Monkey/Patch/NewRelicTracedAMQP/AMQPNewRelicRequestWrapper.html#method-i-host" name="method-i-host" class="permalink">Link</a>
          </div>

            <div class="description">
              <p>String describing this request&#39;s intended host.</p>
            </div>



            <div class="sourcecode">
              <p class="source-link">
                Source:
                <a href="javascript:toggleSource('method-i-host_source')" id="l_method-i-host_source">show</a>
              </p>
              <div id="method-i-host_source" class="dyn-source">
                <pre><span class="ruby-comment"># File lib/hoodoo/monkey/patch/newrelic_traced_amqp.rb, line 99</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword ruby-title">host</span>
  <span class="ruby-ivar">@http_message</span>[ <span class="ruby-string">&#39;host&#39;</span> ]
<span class="ruby-keyword">end</span></pre>
              </div>
            </div>
          </div>
        <div class="method">
          <div class="title method-title" id="method-i-method">
              <b>method</b>()
            <a href="../../../../../classes/Hoodoo/Monkey/Patch/NewRelicTracedAMQP/AMQPNewRelicRequestWrapper.html#method-i-method" name="method-i-method" class="permalink">Link</a>
          </div>

            <div class="description">
              <p>String describing this request&#39;s HTTP verb (GET, POST and so-on).
String case is undefined, so perform case-insensitive comparisions.</p>
            </div>



            <div class="sourcecode">
              <p class="source-link">
                Source:
                <a href="javascript:toggleSource('method-i-method_source')" id="l_method-i-method_source">show</a>
              </p>
              <div id="method-i-method_source" class="dyn-source">
                <pre><span class="ruby-comment"># File lib/hoodoo/monkey/patch/newrelic_traced_amqp.rb, line 107</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword ruby-title">method</span>
  <span class="ruby-ivar">@http_message</span>[ <span class="ruby-string">&#39;verb&#39;</span> ]
<span class="ruby-keyword">end</span></pre>
              </div>
            </div>
          </div>
        <div class="method">
          <div class="title method-title" id="method-i-type">
              <b>type</b>()
            <a href="../../../../../classes/Hoodoo/Monkey/Patch/NewRelicTracedAMQP/AMQPNewRelicRequestWrapper.html#method-i-type" name="method-i-type" class="permalink">Link</a>
          </div>

            <div class="description">
              <p>String describing what kind of request this is.</p>
            </div>



            <div class="sourcecode">
              <p class="source-link">
                Source:
                <a href="javascript:toggleSource('method-i-type_source')" id="l_method-i-type_source">show</a>
              </p>
              <div id="method-i-type_source" class="dyn-source">
                <pre><span class="ruby-comment"># File lib/hoodoo/monkey/patch/newrelic_traced_amqp.rb, line 93</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword ruby-title">type</span>
  <span class="ruby-keyword">self</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">to_s</span>()
<span class="ruby-keyword">end</span></pre>
              </div>
            </div>
          </div>
        <div class="method">
          <div class="title method-title" id="method-i-uri">
              <b>uri</b>()
            <a href="../../../../../classes/Hoodoo/Monkey/Patch/NewRelicTracedAMQP/AMQPNewRelicRequestWrapper.html#method-i-uri" name="method-i-uri" class="permalink">Link</a>
          </div>

            <div class="description">
              <p>String describing the full request URI.</p>
            </div>



            <div class="sourcecode">
              <p class="source-link">
                Source:
                <a href="javascript:toggleSource('method-i-uri_source')" id="l_method-i-uri_source">show</a>
              </p>
              <div id="method-i-uri_source" class="dyn-source">
                <pre><span class="ruby-comment"># File lib/hoodoo/monkey/patch/newrelic_traced_amqp.rb, line 132</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword ruby-title">uri</span>
  <span class="ruby-ivar">@full_uri</span>
<span class="ruby-keyword">end</span></pre>
              </div>
            </div>
          </div>
</div>

    </div>
  </body>
</html>
